class Calculator{
      def calculator(x:Int,y:Int,z:Char){
          val z=readChar()
          z match{
               case '+' => pritnln("x+y=d%",x+y)
               case '+' => pritnln("x-y=d%",x-y)
               case '+' => pritnln("x*y=d%",x*y)
               case '+' => pritnln("x/y=d%",x/y)
               case _ => pritnln("Invalid operator")
             }
             }
             }
